<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="../jquery-3.3.1.min.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
            list-style: none;

        }

        #box{
            width: 600px;
            height: 500px;
            border: 1px solid #999;
            overflow: hidden;
            margin: 0 auto;
            margin-top: 50px;
            border-radius: 50px;
        }

        #box img{
            width: 100px;
            height: 70px;

        }

        #box li{
            height: 60px;
            padding: 20px;
        }

        .left{float:left;}
        .right{
            width: 400px;
            float: right;
        }
    </style>
</head>
<body>
    <h1>新闻滚动效果</h1>
    <hr>

    <div id="box">
        <ul id="newslist">
            <li>
                <div class="left">
                    <img src="./1.jpg" alt="">
                </div>
                <div class="right">
                    <h3>爆炸新闻1</h3>
                    <p>腾讯娱乐白皮书爱神的箭暗杀可手动哈可视对讲</p>
                </div>
            </li>
            <li>
                <div class="left">
                    <img src="./1.jpg" alt="">
                </div>
                <div class="right">
                    <h3>爆炸新闻2</h3>
                    <p>腾讯娱乐白皮书爱神的箭暗杀可手动哈可视对讲</p>
                </div>
            </li>
            <li>
                <div class="left">
                    <img src="./1.jpg" alt="">
                </div>
                <div class="right">
                    <h3>爆炸新闻3</h3>
                    <p>腾讯娱乐白皮书爱神的箭暗杀可手动哈可视对讲</p>
                </div>
            </li>
            <li>
                <div class="left">
                    <img src="./1.jpg" alt="">
                </div>
                <div class="right">
                    <h3>爆炸新闻4</h3>
                    <p>腾讯娱乐白皮书爱神的箭暗杀可手动哈可视对讲</p>
                </div>
            </li>
            <li>
                <div class="left">
                    <img src="./1.jpg" alt="">
                </div>
                <div class="right">
                    <h3>爆炸新闻5</h3>
                    <p>腾讯娱乐白皮书爱神的箭暗杀可手动哈可视对讲</p>
                </div>
            </li>
            <li>
                <div class="left">
                    <img src="./1.jpg" alt="">
                </div>
                <div class="right">
                    <h3>爆炸新闻6</h3>
                    <p>腾讯娱乐白皮书爱神的箭暗杀可手动哈可视对讲</p>
                </div>
            </li>
            <li>
                <div class="left">
                    <img src="./1.jpg" alt="">
                </div>
                <div class="right">
                    <h3>爆炸新闻7</h3>
                    <p>腾讯娱乐白皮书爱神的箭暗杀可手动哈可视对讲</p>
                </div>
            </li>
            <li>
                <div class="left">
                    <img src="./1.jpg" alt="">
                </div>
                <div class="right">
                    <h3>爆炸新闻8</h3>
                    <p>腾讯娱乐白皮书爱神的箭暗杀可手动哈可视对讲</p>
                </div>
            </li>
        </ul>
    </div>

    <script>
        $(function(){
            setInterval(function(){
                $('#newslist li')
                .last().fadeTo(0,0).hide()
                .prependTo('#newslist').slideDown(1000).fadeTo(1500,1);
            },3000);
        });
    </script>
</body>
</html>